import requests
import json


def get_check_code(phone_code_url):
    try:
        resp = requests.get(phone_code_url, timeout=5)
        data = json.loads(resp.content)
        return data.data.code
    except Exception as e:
        print(e)
        return None
